﻿using System.Windows;

namespace SlideShowDFG2
{
    /// <summary>
    /// Interaction logic for EditAlbumWindow.xaml
    /// </summary>
    public partial class EditAlbumWindow : Window
    {
        private Album _album;

        public EditAlbumWindow(Album album)
        {
            InitializeComponent();
            _album = album;
            base.DataContext = _album;
        }

        private void btnCancel_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = false;
            base.Close();
        }

        private void btnOkay_Click(object sender, RoutedEventArgs e)
        {
            base.DialogResult = true;
            base.Close();
        }

        public Album Album
        {
            get { return _album; }
            set { _album = value; }
        }
    }
}
